margin.bottom + border.bottom;
}
+void
+gtk_widget_get_margin_allocation (GtkWidget *widget,
+ GtkAllocation *allocation)
+{
+ GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
+ GtkBorder margin, border;
+ GtkCssStyle *style;
+
+ style = gtk_css_node_get_style (priv->cssnode);
+ get_box_margin (style, &margin);
+ get_box_border (style, &border);
+
+ *allocation = priv->allocation;
+
+ allocation->x += margin.left;
+ allocation->y += margin.top;
+ allocation->width -= margin.left + margin.right;
+ allocation->height -= margin.top + margin.bottom;
+}
+
/**
* gtk_widget_set_allocation:
* @widget: a #GtkWidget
GtkAllocation *allocation);
void gtk_widget_get_border_allocation (GtkWidget *widget,
GtkAllocation *allocation);
+void gtk_widget_get_margin_allocation (GtkWidget *widget,
+ GtkAllocation *allocation);
+
GtkWidget * gtk_widget_common_ancestor (GtkWidget *widget_a,
GtkWidget *widget_b);